package com.newgrand.annexcommon.model;

public class FileEntity {

    /***
     * 文件名
     */
    private String fileName;

    /***
     * 文件数据
     */
    private byte[] data;

    /***
     * 当前为第几块分片
     */
    private int chunk;

    /**
     * 总分片数量
     */
    private int chunks;

    /**
     * MD5
     */
    private String md5;

    private String dir;

    private boolean isImg;

    private String param;

    private String p_asr_fid;

    public String getP_asr_fid() {
        return p_asr_fid;
    }

    public void setP_asr_fid(String p_asr_fid) {
        this.p_asr_fid = p_asr_fid;
    }

    public FileEntity() {
    }

    public FileEntity(byte[] data) {
        this.data = data;
    }

    public FileEntity(String fileName, byte[] data) {
        this.fileName = fileName;
        this.data = data;
    }

    public FileEntity(String fileName, byte[] data, String param) {
        this.fileName = fileName;
        this.data = data;
        this.param = param;
    }

    public FileEntity(int chunk, int chunks, String md5, String fileName, byte[] data) {
        this.fileName = fileName;
        this.data = data;
        this.chunk = chunk;
        this.chunks = chunks;
        this.md5 = md5;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public byte[] getData() {
        return data;
    }

    public void setData(byte[] data) {
        this.data = data;
    }

    public int getChunk() {
        return chunk;
    }

    public void setChunk(int chunk) {
        this.chunk = chunk;
    }

    public int getChunks() {
        return chunks;
    }

    public void setChunks(int chunks) {
        this.chunks = chunks;
    }

    public String getMd5() {
        return md5;
    }

    public void setMd5(String md5) {
        this.md5 = md5;
    }

    public String getDir() {
        return dir;
    }

    public void setDir(String dir) {
        this.dir = dir;
    }

    public boolean isImg() {
        return isImg;
    }

    public void setImg(boolean isImg) {
        this.isImg = isImg;
    }

    public String getParam() {
        return param;
    }

    public void setParam(String param) {
        this.param = param;
    }
}
